package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.StudyPlanTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 * 用户学习计划
 */

@Data
@TableName(value = "STUDY_USER",autoResultMap = true)
@Entity(name = "STUDY_USER")
@AccEntity(value = "用户学习计划", type = EntityType.SERVICE_ENTITY)
public class StudyUser extends DomainBaseEntity<StudyUser> {

    /**
     * 计划id
     */
    @Column()
    private Long planId;

    /**
     * 用户id
     */
    @Column()
    private Long userId;

    /**
     * 总学习数
     */
    @Column()
    private Integer learningNumber;

    /**
     * 完成数
     */
    @Column()
    private Integer completeNumber;

    /**
     * 是否完成
     */
    @Column()
    private Boolean isComplete;
}
